<?php /*a:1:{s:62:"E:\wamp64\www\tp5\miqicms\extend/widget/advert/indexfocus.html";i:1667703866;}*/ ?>
<style>

.banner-wrap {
   
    position: relative;
    top: 0;
    left: 0;
    _zoom: 1;
   margin-top: 10px;
   margin-bottom: 10px;
    cursor: pointer;
    -webkit-user-select: none;
    -moz-user-select: none；
}
#nonegg{display:none;}
.adtitle {position:absolute;top:0px;left:0px; background-color: #5FB878; color: #fff;}
.adtitle a {color: #fff;text-decoration: underline;margin-left: 5px;}
 
</style>
    <div id="adimg">
	<div class="adtitle">
	 下方广告将在<font id="adtime"><?php echo config('web_config.score_pay.adtime'); ?></font>秒后消失
	<a href="<?php echo url('user/login'); ?>" target="_blank"><font>注册或登录后，去掉广告</font></a> </div>
	<div class="adhtml">
	<?php if(is_array($ad_list) || $ad_list instanceof \think\Collection || $ad_list instanceof \think\Paginator): $i = 0; $__LIST__ = $ad_list;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$ad): $mod = ($i % 2 );++$i;?>
    <?php echo htmlentities($ad['html']); ?>
    <?php endforeach; endif; else: echo "" ;endif; ?>
    </div>
    </div>

<script type="text/javascript">
    //时间倒计时
    var lastHour = 0;       //小时
    var lastMinute = 0;    //分钟
    var lastSecond = <?php echo config('web_config.score_pay.adtime'); ?>;    //秒
    var lastInterval = setInterval(function () {
        if (lastSecond > 0) {
            lastSecond -= 1;
        } else if (lastMinute > 0) {
            lastMinute -= 1;
            lastSecond = 60;
        } else if (lastHour > 0) {
            lastHour -= 1;
            lastMinute = 60;
            lastSecond = 60;
        }
        if (lastHour == 0 && lastMinute == 0 && lastSecond == 0) {
            clearInterval(lastInterval);
            document.getElementById('adimg').style.display = 'none';
           // orderDel(true);
        } else {
            document.getElementById('adtime').innerText=lastSecond;
        }
    }, 1000);
</script>
